/**
 * 把echarts配置项目中的所有绝对尺寸改为相对尺寸
 * @param {number} size
 * @returns number
 */

function getChartsize(size) {
    const docEl = document.documentElement;
    // const clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
    const clientHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
    if (!clientHeight) return;
    const fontSize = 100 * (clientHeight / 720);
    return size * fontSize;
}
export {
    getChartsize,
};
